<layout name="master"/>


<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">UI kit</a></li>
    <li><a href="#">Form</a></li>
    <li class="active">Elements</li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">管理员添加</h3>
</div>
<div class="row">
    <div class="col-sm-8">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">添加管理员</header>
            <div class="panel-body">
                <form role="form" method="post" action="">
                    <div class="form-group">
                        <label>账号</label>
                        <input type="text" name='aname' value="{$olddate['name']}" class="form-control" placeholder="">
                    </div>
                    <div class="form-group">
                        <label>密码</label>
                        <input type="text" name='apass' value="{$olddate['title']}" class="form-control" placeholder="默认密码为admin">
                    </div>
                    <div  class="form-group">
                        <foreach name="groups" item="vo">
                         	<div style="margin-left: 30px;padding: 5px 5px;border: 1px solid #ccc">
                         		<input type="radio" name="group_id" value="{$vo['id']}" <if condition="$vo['id'] eq 1">checked="checked"</if>>
                         		{$vo['title']}
                                <div style="padding: 5px 5px;border: 1px solid #ccc">
                                    <foreach name="vo['rulename']" item="voo">
                                    <span style="padding: 5px 5px;color:orange;">{$voo}</span>
                                    </foreach>
                                </div>
                         	</div>
                        </foreach>

                    </div>
                    <button type="submit" class="btn btn-sm btn-success">提交</button>
                </form>
            </div>
        </section>
    </div>
</div>


